package com.chisheng.caa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("抽象导课设定信息类")
public abstract class AbstractImportCourseSetting extends AbstractSetting implements ImportCourseSetting {

    @ApiModelProperty("加载策略")
    protected LoadingStrategy loadingStrategy;

    public AbstractImportCourseSetting() {
    }

    public AbstractImportCourseSetting(ImportCourseSetting setting) {
        super(setting);
        this.loadingStrategy = setting.getLoadingStrategy();
    }

    @Override
    public LoadingStrategy getLoadingStrategy() {
        return loadingStrategy;
    }

    @Override
    public String toString() {
        return "ImportCourseSetting{" +
                "loadingStrategy=" + loadingStrategy +
                ", duplicateStrategy=" + duplicateStrategy +
                ", grade=" + grade +
                '}';
    }

}
